package com.cskaoyan.service.wx;

import com.cskaoyan.bean.cart.CartData;
import com.cskaoyan.bean.cart.CheckoutData;

import java.util.Map;

/**
 * @author xudengfeng
 * @date 2020/12/8 10:23
 */
public interface CartService {
    int getGoodsCount();

    int addCart(Map map);

    int updateCart(Map map);

    int checkedCart(Map map);

    int deleteCart(Map map);

    CartData getCartInfo();

    CheckoutData checkoutCart(Integer cartId, Integer addressId, Integer couponId, Double couponPriceMax, Integer grouponRulesId);

    Double getTotalPriceInCart(Integer userId);
}
